package com.sfh.entity;


import android.os.Parcel;
import android.os.Parcelable;

/**
 * 功能描述:红颜
 *
 * @author SunFeihu 孙飞虎
 * @date 2017/9/3
 */
public class Beauty implements Parcelable{

    BeautyJson beauty;//本地数据

    String code;//美人编号

    long intimacy;//亲密度

    long child;//孩子个数

    /**
     * 用户自定义 信息
     */
    String editName;//介绍

    String editDesc;//介绍

    String liveImage;//生活照片

    String secretImage;// 私密照片

    public Beauty(){}
    protected Beauty(Parcel in) {

        code = in.readString ();
        intimacy = in.readLong ();
        child = in.readLong ();
        editName = in.readString ();
        editDesc = in.readString ();
        liveImage = in.readString ();
        secretImage = in.readString ();
        beauty = in.readParcelable (BeautyJson.class.getClassLoader ());
    }

    public static final Creator<Beauty> CREATOR = new Creator<Beauty> () {

        @Override
        public Beauty createFromParcel(Parcel in) {

            return new Beauty (in);
        }

        @Override
        public Beauty[] newArray(int size) {

            return new Beauty[size];
        }
    };

    public BeautyJson getBeauty() {

        return beauty;
    }

    public void setBeauty(BeautyJson beauty) {

        this.beauty = beauty;
    }

    public String getCode() {

        return code;
    }

    public void setCode(String code) {

        this.code = code;
    }

    public long getIntimacy() {

        return intimacy;
    }

    public void setIntimacy(long intimacy) {

        this.intimacy = intimacy;
    }

    public long getChild() {

        return child;
    }

    public void setChild(long child) {

        this.child = child;
    }

    public String getEditName() {

        return editName;
    }

    public void setEditName(String editName) {

        this.editName = editName;
    }

    public String getEditDesc() {

        return editDesc;
    }

    public void setEditDesc(String editDesc) {

        this.editDesc = editDesc;
    }

    public String getLiveImage() {

        return liveImage;
    }

    public void setLiveImage(String liveImage) {

        this.liveImage = liveImage;
    }

    public String getSecretImage() {

        return secretImage;
    }

    public void setSecretImage(String secretImage) {

        this.secretImage = secretImage;
    }

    @Override
    public int describeContents() {

        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {

        dest.writeString (code);
        dest.writeLong (intimacy);
        dest.writeLong (child);
        dest.writeString (editName);
        dest.writeString (editDesc);
        dest.writeString (liveImage);
        dest.writeString (secretImage);
        dest.writeParcelable (beauty,flags);
    }
}
